using MediatR;
using RBAC.ErrorCode;

namespace RBAC.Write.Api.Application.Command.Approval
{
    /// <summary>
    /// 更新审批流程命令
    /// </summary>
    public class UpdateApprovalProcessCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 审批流程ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 流程名称
        /// </summary>
        public string ProcessName { get; set; }

        /// <summary>
        /// 流程描述
        /// </summary>
        public string? ProcessDescription { get; set; }

        /// <summary>
        /// 流程类型（采购、销售、入库、出库等）
        /// </summary>
        public string ProcessType { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateUser { get; set; }
    }
}
